package com.ruoyi.exam.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考试记录对象 exam_record
 * 
 * @author ba7lgj
 * @date 2024-04-03
 */
public class ExamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单次考试记录 */
    @Excel(name = "单次考试记录")
    private Long recordId;

    /** 考试ID */
    @Excel(name = "考试ID")
    private Long examUserId;

    /** 考生进入考试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考生进入考试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date examStartTime;

    /** 考试使用时长 秒 */
    @Excel(name = "考试使用时长 秒")
    private Long duration;

    /** 逻辑成绩 */
    @Excel(name = "逻辑成绩")
    private BigDecimal logicScore;

    /** 总成绩 */
    @Excel(name = "总成绩")
    private BigDecimal totalScore;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setExamUserId(Long examUserId) 
    {
        this.examUserId = examUserId;
    }

    public Long getExamUserId() 
    {
        return examUserId;
    }
    public void setExamStartTime(Date examStartTime) 
    {
        this.examStartTime = examStartTime;
    }

    public Date getExamStartTime() 
    {
        return examStartTime;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setLogicScore(BigDecimal logicScore) 
    {
        this.logicScore = logicScore;
    }

    public BigDecimal getLogicScore() 
    {
        return logicScore;
    }
    public void setTotalScore(BigDecimal totalScore) 
    {
        this.totalScore = totalScore;
    }

    public BigDecimal getTotalScore() 
    {
        return totalScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("examUserId", getExamUserId())
            .append("examStartTime", getExamStartTime())
            .append("duration", getDuration())
            .append("logicScore", getLogicScore())
            .append("totalScore", getTotalScore())
            .toString();
    }
}
